package com.springboot.yuangong.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author author
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Employees extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 关联的账号ID
     */
    @TableId
    private Integer userid;

    /**
     * 员工性别
     */
    private String sex;

    /**
     * 员工年龄
     */
    private String age;

    /**
     * 员工电话
     */
    private String phone;

    /**
     * 入职日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rzdate;

    /**
     * 员工地址
     */
    private String address;


}
